import unittest,time
from selenium import webdriver
from Page import Page
from Tools import Tools
from ddt import ddt,file_data

@ddt()
class TestCase(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Edge()

    def tearDown(self):
        time.sleep(3)
        self.driver.quit()
        Tools().log()

    @file_data(r'E:\gg4\PythonProject1\Day_2303_test\guoq2_102\yaml.yaml')
    def test_01(self,username,password):
        po = Page(self.driver)
        po.luoji_01(username,password)

if __name__ == '__main__':
    unittest.main()